{{- range .Widgets -}}
  {{- if eq . "search" -}}
    {{- if not ( eq $.Scope.Layout "search" ) -}}
      {{- partial ( print "widgets/" . ) $.Scope -}}
    {{- end -}}
  {{- else -}}
    {{- partial ( print "widgets/" . ) $.Scope -}}
  {{- end -}}
{{- end -}}